package cn.gxa.j229.bug.finance.service.loanuser.impl;

import cn.gxa.j229.bug.finance.mapper.UserMoneyMapper;
import cn.gxa.j229.bug.finance.pojo.UserMoney;
import cn.gxa.j229.bug.finance.service.loanuser.UserMoneyService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @Author: fenglin
 * @Date:2020/9/25 16:53
 * @Version 1.0
 */
@Service("UserMoneyService")
public class UserMoneyServiceImpl implements UserMoneyService {
    @Resource
    UserMoneyMapper userMoneyMapper=null;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return 0;
    }

    @Override
    public int insert(UserMoney record) {
        return 0;
    }

    @Override
    public int insertSelective(UserMoney record) {
        return 0;
    }

    @Override
    public UserMoney selectByPrimaryKey(UserMoney userMoney) {
        return null;
    }


    @Override
    public List<Map<String, String>> selectAll(UserMoney userMoney) {
        userMoney.setPage((userMoney.getPage()-1)*userMoney.getLimit());
        return userMoneyMapper.selectAll(userMoney);
    }

    @Override
    public List<Map<String, String>> selectPhoneAndName(UserMoney userMoney) {
        userMoney.setPage((userMoney.getPage()-1)*userMoney.getLimit());
        return userMoneyMapper.selectPhoneAndName(userMoney);
    }



    @Override
    public List<Map<String, String>> selectInvestmentuserPhoneAndName(UserMoney userMoney) {
        userMoney.setPage((userMoney.getPage()-1)*userMoney.getLimit());
        return userMoneyMapper.selectInvestmentuserPhoneAndName(userMoney);
    }



    @Override
    public List<Map<String, String>> selectLoanuserPhoneAndName(UserMoney userMoney) {
        userMoney.setPage((userMoney.getPage()-1)*userMoney.getLimit());
        return userMoneyMapper.selectLoanuserPhoneAndName(userMoney);
    }

    @Override
    public int selectLoanuserCount(UserMoney userMoney) {
        return userMoneyMapper.selectLoanuserCount(userMoney);
    }

    @Override
    public int selectLoanuserPhoneAndNameCount(UserMoney userMoney) {
        return userMoneyMapper.selectLoanuserPhoneAndNameCount(userMoney);
    }

    @Override
    public int selectAllCount(UserMoney userMoney) {
        return userMoneyMapper.selectAllCount(userMoney);
    }

    @Override
    public int selectPhoneAndNameCount(UserMoney userMoney) {
        return userMoneyMapper.selectPhoneAndNameCount(userMoney);
    }

    @Override
    public int selectInvestmentuserCount(UserMoney userMoney) {
        return userMoneyMapper.selectInvestmentuserCount(userMoney);
    }

    @Override
    public int selectInvestmentuserPhoneAndNameCount(UserMoney userMoney) {
        return userMoneyMapper.selectInvestmentuserPhoneAndNameCount(userMoney);
    }

    @Override
    public List<Map<String, String>> selectInvestmentuser(UserMoney userMoney) {
        userMoney.setPage((userMoney.getPage()-1)*userMoney.getLimit());
        return userMoneyMapper.selectInvestmentuser(userMoney);
    }

    @Override
    public List<Map<String, String>> selectLoanuser(UserMoney userMoney ) {
        userMoney.setPage((userMoney.getPage()-1)*userMoney.getLimit());
        return userMoneyMapper.selectLoanuser(userMoney);
    }

    @Override
    public int updateByPrimaryKeySelective(UserMoney record) {
        return 0;
    }

    @Override
    public int updateByPrimaryKey(UserMoney record) {
        return 0;
    }
}
